from ttk import Frame, Label, Scale, Style
from Tkinter import Tk, BOTH, IntVar

class ScaleWidget(Frame):
    def __init__(self, parent):
        Frame.__init__(self, parent, style="My.TFrame")
        
        self.parent = parent
        
        self.initUI()
        
    def initUI(self):
        self.parent.title("Scale")
        
        self.pack(fill=BOTH, expand=1)
        
        scale = Scale(self, from_=0, to=100, command=self.onScaleDrag)
        scale.place(x=20,y=20)
        
        self.var = IntVar()
        self.label = Label(self, text=0, textvariable=self.var)
        self.label.place(x=130, y=70)
        
    def onScaleDrag(self, val):
        self.var.set(int(float(val)))

def main():
    root = Tk()
    root.geometry("300x150+300+300")
    app = ScaleWidget(root)
    root.mainloop()  
    
if __name__ == '__main__':
    main()